package com.augurit.wf.jbpmex.task.multitask;

import com.augurit.wf.jbpmex.task.multitask.completerule.base.ICompleteRule;
import com.augurit.wf.jbpmex.task.multitask.proxy.MultiTaskProxyFactory;

public class MultiTaskDefinition {
	
	private boolean enableMultiTask = false; //是否启动多任务工作项

	private String mode = MultiTaskProxyFactory.EQUAL;	//工作模式
	private boolean usePriority = false;     //是否按顺序执行工作项

	private ITakeTransitionRule takeTransitionRule;	//自定义流转规则实现
	private ICompleteRule completeRule;				//完成规则实现

	
	public boolean isEnableMultiTask() {
		return enableMultiTask;
	}

	public void setEnableMultiTask(boolean enableMultiTask) {
		this.enableMultiTask = enableMultiTask;
	}

	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}

	public boolean isUsePriority() {
		return usePriority;
	}

	public void setUsePriority(boolean usePriority) {
		this.usePriority = usePriority;
	}
	
	public ITakeTransitionRule getTakeTransitionRule() {
		return takeTransitionRule;
	}

	public void setTakeTransitionRule(ITakeTransitionRule takeTransitionRule) {
		this.takeTransitionRule = takeTransitionRule;
	}

	public ICompleteRule getCompleteRule() {
		return completeRule;
	}

	public void setCompleteRule(ICompleteRule completeRule) {
		this.completeRule = completeRule;
	}
}
